package com.jiangwz.cyclicDependency;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class TestAspect {

    @Pointcut("execution(* com.jiangwz.cyclicDependency.*.*(..))")
    public void sayHello() {

    }

    @Before("sayHello()")
    public void doBefore() {
        System.out.println("before : hello");
    }
}